package com.idanchuang.user.count.service.api.request.command.read;

import com.idanchuang.user.count.service.api.request.command.BaseUpdateCommand;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Richard_yyf
 * @version 1.0 2021/7/7
 */
public class BatchAddUserMsgCommand extends BaseUpdateCommand {

    /**
     * 消息唯一 id
     */
    @NotNull
    private String msgId;

    /**
     * 计数场景
     */
    @NotNull
    private String scene;

    /**
     * 用户 list
     * size <= 1000
     */
    @NotEmpty
    private List<Integer> userCodeList;

    public BatchAddUserMsgCommand() {
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public List<Integer> getUserCodeList() {
        return userCodeList;
    }

    public void setUserCodeList(List<Integer> userCodeList) {
        this.userCodeList = userCodeList;
    }

    @Override
    public String toString() {
        return "BatchAddUserMsgCommand{" +
                "msgId='" + msgId + '\'' +
                ", scene='" + scene + '\'' +
                ", userCodeList=" + userCodeList +
                '}';
    }
}
